﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace UwaySoft.EsheetServer.Help.Template
{
    public class HandleModel : BaseTemplate
    {
        private string _type;
        public string Type
        {
            get { return _type; }
            set { _type = value; }
        }

        private string _serialNo;
        public string SerialNo
        {
            get { return _serialNo; }
            set { _serialNo = value; }
        }

        private string _handleContent;
        public string HandleContent
        {
            get { return _handleContent; }
            set { _handleContent = value; }
        }

        private string _curNode;
        public string CurNode
        {
            get { return _curNode; }
            set { _curNode = value; }
        }

        private string _handleStaff;
        public string HandleStaff
        {
            get { return _handleStaff; }
            set { _handleStaff = value; }
        }

        private string _handleDate;
        public string HandleDate
        {
            get { return _handleDate; }
            set { _handleDate = value; }
        }

        private string _serialInfoNo;
        public string SerialInfoNo
        {
            get { return _serialInfoNo; }
            set { _serialInfoNo = value; }
        }


        public HandleModel(XmlDocument xmlDocument)
        {
            Type = "5";
            SerialNo = GetNodeInnerText(xmlDocument, "/handleIdea/handleInfo/serialNo");
            HandleContent = GetNodeInnerText(xmlDocument, "/handleIdea/handleInfo/handleContent");
            CurNode = GetNodeInnerText(xmlDocument, "/handleIdea/handleInfo/curNode");
            HandleStaff = GetNodeInnerText(xmlDocument, "/handleIdea/handleInfo/handleStaff");
            HandleDate = GetNodeInnerText(xmlDocument, "/handleIdea/handleInfo/handleDate");
            SerialInfoNo = GetNodeInnerText(xmlDocument, "/handleIdea/handleInfo/serialInfoNo");
        }
    }
}
